﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _013_014_015_016_表达式_语句详解_15_1_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            {
                int x = 100;
                {
                    Console.WriteLine(x);
                    int y = 100;
                }
                //Console.WriteLine(y);

                //hello: Console.WriteLine("Hello World");
                //goto hello; 

                int a = 100;
                int b = 200;
                if (a > b)
                    Console.WriteLine("a大于b");
                else
                    Console.WriteLine("b大于a");

                if (true)
                {
                    Console.WriteLine("布尔值");
                }
                else { }

                int score = 101;
                switch (score / 10)
                {
                    case 10:
                        if (score == 100)
                        {
                            goto case 8;
                        }
                        else
                        {
                            goto default;
                        }
                    case 8:
                    case 9:
                        Console.WriteLine("A");
                        break;
                    case 6:
                    case 7:
                        Console.WriteLine("B");
                        break;
                    case 4:
                    case 5:
                        Console.WriteLine("C");
                        break;
                    case 0:
                    case 1:
                    default:
                        Console.WriteLine("ERROR");
                        break;
                }
            }
        }
    }


}
